GDK-Win32: Fix AeroSnap on HiDPI
authorChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 8 Aug 2017 14:19:45 +0000 (22:19 +0800)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 2 Dec 2017 10:38:27 +0000 (10:38 +0000)
commiteb6d5b6b276ea37fadd9ccd88faef173e72dd2f4
tree1fbf0ad639a3482fe8523918dfc7684ea313fa2f
parentd7e2017c289f69f52632661170e34786bbd08d7e
GDK-Win32: Fix AeroSnap on HiDPI

Commit 1d0fad3 revealed that there were some assumptions made that were
actually to compensate for the bug fixed by that commit, so we need to
remove those assumptions as they would result in AerSnap to not work
properly on HiDPI screens.

Also re-do how we set the x and y positions of our GdkWindow, so that we
are more consistent across the board when we go between a GDK window
coordinate and a Windows API window cooredinate.

This would also simplify the code a bit.

https://bugzilla.gnome.org/show_bug.cgi?id=785999
gdk/win32/gdkevents-win32.c
gdk/win32/gdkwindow-win32.c